const pageState = {
	innerWidth: window.innerWidth || 0,
	innerHeight: window.innerHeight || 0
};

const page = (state = pageState, action) => {
	if (!state) return {};
	switch (action.type) {
		case 'CHANGE_INNER':
			return { ...state, innerWidth: action.innerWidth, innerHeight: action.innerHeight };
		default:
			return state
	}
};
export default page;
